import re
from datetime import datetime
from typing import List, Optional
from pydantic import BaseModel, Field, validator, EmailStr, IPvAnyAddress
from enum import Enum

class PostAlarmCallback(BaseModel):
    receiver: str = Field(..., description="告警接受者")
    status: str = Field(..., description="告警的状态,例如: firing/resolved")
    alerts: List[dict] = Field(..., description="告警记录信息")


class DelBaseModel(BaseModel):
    uuid: int = Field(..., description="数据的uuid")

